import { Module } from '@nestjs/common';
import { GpuService } from './gpu.service';
import { GpuController } from './gpu.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { GpuCodeSchema } from '../schema/GPU/gpu_code.schema';
import { GpuSchema } from '../schema/GPU/gpu.schema';

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: 'GPU_CODE', schema: GpuCodeSchema },
      { name: 'GPU', schema: GpuSchema },
    ]), //注册显卡芯片的Schema
  ],
  controllers: [GpuController],
  providers: [GpuService],
})
export class GpuModule {}
